package com.retailshop.shopuser.service.impl;

import com.retailshop.shopuser.entity.UserSysMessage;
import com.retailshop.shopuser.mapper.UserSysMessageMapper;
import com.retailshop.shopuser.service.UserSysMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userSysMessageService")
public class UserSysMessageServiceImpl  implements UserSysMessageService {


    @Autowired
    UserSysMessageMapper userSysMessageMapper;

    @Override
    public int deleteByPrimaryKey(Integer usysId) {
        return userSysMessageMapper.deleteByPrimaryKey(usysId);
    }

    @Override
    public int insert(UserSysMessage record) {
        return userSysMessageMapper.insert(record);
    }

    @Override
    public int insertSelective(UserSysMessage record) {
        return userSysMessageMapper.insertSelective(record);
    }

    @Override
    public UserSysMessage selectByPrimaryKey(Integer usysId) {
        return userSysMessageMapper.selectByPrimaryKey(usysId);
    }

    @Override
    public int updateByPrimaryKeySelective(UserSysMessage record) {
        return userSysMessageMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UserSysMessage record) {
        return userSysMessageMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateMessage(UserSysMessage userSysMessage) {
        return userSysMessageMapper.updateMessage(userSysMessage);
    }

    @Override
    public int getSysMessageCount(int userNoId) {
        return userSysMessageMapper.getSysMessageCount(userNoId);
    }
}
